<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app1">
			<my-com1></my-com1>
		</div>
		<div id="app2">
			<my-com2></my-com2>
		</div>
		<script>
			// 私有组件定义方式
			let myCom1 = {
				template: "<h1>myCom1</h1>"
			}

			let myCom2 = {
				template: "<h1>myCom2</h1>"
			}

			var app1 = new Vue({
				el:'#app1',
				data:{

				},
				components:{
					myCom1
				}
			})
			var app2 = new Vue({
				el:'#app2',
				data:{

				},
				components: {
					myCom2
				}
			})
		</script>
	</body>
</html>
